package com.mlming.controller.frontend;


import com.mlming.dto.MainPageInfoDTO;
import com.mlming.dto.Result;
import com.mlming.service.combine.HeadLineShopCategoryCombineService;
import lombok.extern.slf4j.Slf4j;
import org.simpleframework.core.annotation.Controller;
import org.simpleframework.inject.annotation.Autowired;
import org.simpleframework.inject.annotation.Qualifier;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 首页模块对应的Controller类
 */
@Controller
public class MainPageController {
    @Autowired
    @Qualifier("HeadLineShopCategoryCombineServiceImpl")
    private HeadLineShopCategoryCombineService headLineShopCategoryCombineService;

    public Result<MainPageInfoDTO> getMainPageInfo(HttpServletRequest req, HttpServletResponse resp){
        return headLineShopCategoryCombineService.getMainPageInfo();
    }
    public void throwException(){
        throw new RuntimeException("抛出异常测试");
    }
}
